package form.ui.css
{
	import form.ui.ListBase;
	import form.ui.component.Slider.Slider;
	import form.ui.core.Button;
	import form.ui.core.ButtonToggle;
	import form.ui.core.FMSprite;
	
	public class CssFactory
	{
		public static function createCSS(box:FMSprite):CSS
		{
			if(box is Button)
			{
				return new ButtonCSS(box);
			}
			else if(box is ButtonToggle)
			{
				return new ToggleCSS(box);
			}
			else if(box is Slider)
			{
				return new SlideCSS(box);
			}
			else if(box is ListBase)
			{
				return new ListCSS(box);
			}
			else
			{
				return new CSS(box);
			}
		}
	}
}